// import QtQuick 1.0 // to target S60 5th Edition or Maemo 5
import QtQuick 1.1
import com.nokia.meego 1.0

QueryDialog {
  id: settingsDialog
  property alias name: userName.text;
  property alias image: selectImage.text

  acceptButtonText: qsTr("Ok")
  rejectButtonText: qsTr("Cancel")


  anchors.fill:parent

    Grid {
        id: grid1
        spacing: 20
        rows: 2
        columns: 2
        anchors{
            top:parent.top
            left: parent.left
            right: parent.right
            topMargin: 20
        }
        Label{id:name; text:qsTr("Name"); height: 40;color: "white" }
        TextField{
            id:userName;
            text: ""

        }
        Label{text:qsTr("Image"); height: 40;color: "white" }
        TextField {
            id: selectImage
            text: "image url here"
            readOnly: true

            ImageSelectionDialog {
                id: imageSelection

                onAccepted :{
                    selectImage.text=imageSelection.source
                }
            }

            MouseArea{
                anchors.fill: parent;
                onClicked: imageSelection.open();
            }
        }
    }
}
